package com.zyy.admin.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EntityListeners(AuditingEntityListener.class)
@Entity
@Table(name = "label_user")
public class LabelUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id @Column(name = "id", nullable = false) @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id;

    /**
     * 用户名称
     */
    @Column(name = "name") private String name;

    /**
     * 用户信息描述
     */
    @Column(name = "description") private String description;

    /**
     * 用户目前的状态，0：poc，1：试用，2：对接，3：测试，4：上线
     */
    @Column(name = "status") private Integer status;

    @Column(name = "created_time") private Date createdTime;

    @Column(name = "updated_time") private Date updatedTime;

}
